package com.cloud.common.magic_init.database;

public class DataSourcePoolFactory {

    public static DataSourcePoolWrapper create(final String className) {
        try {
            return (DataSourcePoolWrapper) Class.forName(className).newInstance();
        } catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {
            throw new RuntimeException("DataSourcePoolFactory加载类错误", e);
        }
    }

}
